package com.upcode.weighing.domain;

import java.time.LocalDateTime;
import com.upcode.weighing.base.domain.BaseEntity;

/**
 * <p>
 * 系统操作日志信息表
 * </p>
 *
 * @author alex
 * @since 2019-04-10
 */
public class SysOptLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 日志信息表主键
     */
    private Long id;

    /**
     * 日志类型（1:增，2:删，3:改，4:查）
     */
    private Integer type;

    /**
     * 日志说明（日志数据）
     */
    private String desc;

    /**
     * 操作详情
     */
    private String remark;

    /**
     * 操作人IP地址
     */
    private String adr;

    /**
     * 删除标识（1:未删除，2:已删除）
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建用户
     */
    private String createUser;

    private String loginName;//账号
    private String exceptionLog;//异常记录

    /**
     * 创建用户
     */
    private String ip;

    public String getExceptionLog() {
        return exceptionLog;
    }

    public void setExceptionLog(String exceptionLog) {
        this.exceptionLog = exceptionLog;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getAdr() {
        return adr;
    }

    public void setAdr(String adr) {
        this.adr = adr;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    @Override
    public String toString() {
        return "SysLog{" +
        "id=" + id +
        ", type=" + type +
        ", desc=" + desc +
        ", remark=" + remark +
        ", adr=" + adr +
        ", status=" + status +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        "}";
    }
}
